package com.hpeu_12.day1218;

import java.util.Scanner;

/**
 * 需求：键盘输入1~7,如果是1就输出星期一，如果是2就输出星期二。。。如果是7就输出星期天
 * @author clover
 *
 */
public class Test04 {
	public static void main(String[] args) {
		//创建键盘输入对象
		Scanner scanner = new Scanner(System.in);
		//提示请输入1~7：
		System.out.println("请输入1~7：");
		//接受键盘输入的数
		int week = scanner.nextInt();
		//写算法
		//断点调试：1.打断点  2.debug运行  3.按F6下一步
		if (week == 1) {
			System.out.println("星期一");
		}else if (week == 2) {
			System.out.println("星期二");
		}else if (week == 3) {
			System.out.println("星期三");
		}else if (week == 4) {
			System.out.println("星期四");
		}else if (week == 5) {
			System.out.println("星期五");
		}else if (week == 6) {
			System.out.println("星期六");
		}else if (week == 7) {
			System.out.println("星期天一");
		}else {
			System.out.println("对不起您输入的信息错误");
		}
	}
}
